package com.qtx.report.controller;

import com.qtx.report.common.ResultObject;
import com.qtx.report.pojo.dto.SysMenuDto;
import com.qtx.report.service.ISysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 菜单信息表 前端控制器
 * </p>
 *
 * @author qtx
 * @since 2022-09-21
 */
@RestController
@RequestMapping("/report/sysMenu")
public class SysMenuController {

    @Autowired
    private ISysMenuService service;

    @PostMapping("/renew")
    public ResultObject<Boolean> renew(@RequestBody SysMenuDto dto) {
        return ResultObject.success(service.saveOrUpdateNew(dto));
    }

}
